package com.example.receiver;

import com.example.fragment.IMainActivity;
import com.example.tools.Tools;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.view.View;

public class NotificationReceiver extends BroadcastReceiver {

	@Override
	public void onReceive(Context arg0, Intent arg1) {
		if (Tools.isAppInForeground(arg0)) {
			IMainActivity.mVNewMsg.setVisibility(View.VISIBLE);
		} else {
			IMainActivity.mIsNewMsg = true;
		}
	}

}
